package models

// MaEmergencyUser [...]
type MaEmergencyUser struct {
	ID      int    `gorm:"autoIncrement:true;primaryKey;column:id;type:int;not null" json:"id" json_old:"ID"`
	Name    string `gorm:"column:name;type:varchar(50);not null;comment:通知人" json:"name" json_old:"Name"`
	Phone   string `gorm:"column:phone;type:varchar(30);not null;comment:联系电话" json:"phone" json_old:"Phone"`
	Email   string `gorm:"column:email;type:varchar(30);not null;comment:邮箱地址" json:"email" json_old:"Email"`
	Deleted int    `gorm:"column:deleted;type:tinyint(1);not null;default:0;comment:是否删除0:正常 1删除" json:"deleted" json_old:"Deleted"`
}

// TableName get sql table name.获取数据库表名
func (m MaEmergencyUser) TableName() string {
	return "ma_emergency_user"
}

// 模式自动注册
func init() {
	Models = append(Models, &MaEmergencyUser{})
}
